<?php

namespace app\common\model;

use think\model\concern\SoftDelete;

class ChatPromptMember extends \think\Model
{
    use SoftDelete;

    protected $table = 'db_chat_prompt_member';

    protected $jsonAssoc = true;

    protected $autoWriteTimestamp = true;

    protected $schema = [
        'id' => 'int',
        'create_time' => 'int',
        'update_time' => 'int',
        'delete_time' => 'int',
        'pubid' => 'varchar',
        'name' => 'varchar',
        'member_id' => 'int',
        'chat_prompt_id' => 'int',
    ];

    public $getters = [
        
    ];

    /**
     * 关联模型member
     */
    public function member()
    {
        return $this->belongsTo(Member::class );
    }

    /**
     * 关联模型chatPrompt
     */
    public function chatPrompt()
    {
        return $this->belongsTo(ChatPrompt::class );
    }
}
